<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class TWarnDefine extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_warn_define', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->increments('wd_index')->nullable(false)->comment('');
			$table->integer('wd_id')->nullable(false)->default(0)->comment('');
			$table->integer('dt_typeid')->nullable(false)->default(0)->comment('');
			$table->string('wd_name', 64)->nullable(false)->default('')->comment('');
			$table->string('wd_warndesc0', 64)->nullable(false)->default('')->comment('');
			$table->string('wd_warndesc1', 64)->nullable(false)->default('')->comment('');
			$table->string('wd_warnsound', 100)->nullable()->default(null)->comment('');
			$table->integer('wd_level0')->nullable(false)->default(0)->comment('');
			$table->integer('wd_level1')->nullable(false)->default(0)->comment('');
			$table->integer('wd_delay')->nullable(false)->default(0)->comment('');
			$table->boolean('wd_enablelog0')->nullable(false)->default(1)->comment('');
			$table->boolean('wd_enablelog1')->nullable(false)->default(1)->comment('');
			$table->boolean('wd_enable')->nullable(false)->default(1)->comment('');
			$table->string('wd_memo', 255)->nullable()->default(null)->comment('');
			$table->integer('wd_warntime')->nullable(false)->default(1)->comment('');
			$table->integer('wd_spacetime')->nullable(false)->default(1)->comment('');
			$table->integer('wd_origindex')->nullable()->default(0)->comment('');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_warn_define');
    }
}
